import $ from "jquery";

export const scroll = (selector, scrollTop, duration, easing) => {
  return new Promise((resolve) => {
    $(selector).animate({
      scrollTop
    }, duration, easing, () => {
      resolve();
    })
  })
}
